<?php

$cs=Yii::app()->clientScript;

$dir = Yii::getPathOfAlias('ext.ueditor');
$baseUrl = Yii::app()->getAssetManager()->publish($dir);
$cs->registerScriptFile($baseUrl.'/editor_all.js',CClientScript::POS_HEAD );
$cs->registerScriptFile($baseUrl.'/editor_config.js',CClientScript::POS_HEAD );

$dir = Yii::getPathOfAlias('ext.ueditor.themes.default');
$baseUrl = Yii::app()->getAssetManager()->publish($dir);
$cs->registerCssFile($baseUrl.'/ueditor.css');
?>

<script type="text/javascript">
    var ue = new UE.ui.Editor();
    ue.render('Article_content');
</script>


<?php echo $this->renderPartial('_post', array(
    'model'=>$model,
)); ?>